-- Package Sumador

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;

package pak_sumador is

component restador2 is
port(p,q: in std_logic_vector(7 downto 0);
	 dif: out std_logic_vector(7 downto 0));
end component;

component acum is
port(RST,CLK: in std_logic;
     INPUT: in std_logic_vector (7 downto 0);
     OUTPUT: out std_logic_vector (7 downto 0));
end component;

component contador is
port(a: in std_logic_vector(7 downto 0);
     output: out std_logic_vector(7 downto 0));
end component;

component restador is
port(p,q: in std_logic_vector(7 downto 0);
	 dif,max: out std_logic_vector(7 downto 0);
	 sel: out std_logic);
end component;

component desplazadord is
port(a: in std_logic_vector(7 downto 0);
     dif: in std_logic_vector(7 downto 0);
     b: out std_logic_vector(7 downto 0));
end component;

component desplazadori is
port(a: in std_logic_vector(7 downto 0);
     dif: in std_logic_vector(7 downto 0);
     b: out std_logic_vector(7 downto 0));
end component;

component selector is
port(a,b: in std_logic_vector(7 downto 0);
     sel: in std_logic;
     menor_exp,mayor_exp: out std_logic_vector(7 downto 0));
end component;

component sumar is
port(a,b: in std_logic_vector(7 downto 0);
     output: out std_logic_vector(7 downto 0));
end component;

end pak_sumador;
